package com.ruochen.recipe.ui.fragment.account;

import android.os.Bundle;

import androidx.recyclerview.widget.LinearLayoutManager;

import com.ruochen.common.adapter.RecyclerCommonAdapter;
import com.ruochen.common.adapter.RecyclerViewHolder;
import com.ruochen.common.base.BaseMvpFragment;
import com.ruochen.recipe.R;
import com.ruochen.recipe.databinding.FragmentAccountReconciliateBinding;
import com.ruochen.recipe.mvp.account.AccountReconciliateCovenant;
import com.ruochen.recipe.mvp.account.AccountReconciliatePresenter;

import java.util.Arrays;

/**
 * @Description 对账中心
 * @Auth RuoChen
 * @Date 12/03/2021, 16:08
 **/
public class AccountReconciliateFragment extends BaseMvpFragment<FragmentAccountReconciliateBinding, AccountReconciliatePresenter> implements AccountReconciliateCovenant.MvpView {

    @Override
    protected void initView(Bundle savedInstanceState) {
        viewBinding.rightPanel.rvMaterialList.setLayoutManager(new LinearLayoutManager(mContext));
        viewBinding.rightPanel.rvMaterialList.setAdapter(new RecyclerCommonAdapter<String>(mContext, R.layout.item_account_reconciliate_dish, Arrays.asList("1", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2",
                "2", "2", "2", "2", "2", "2", "2", "2", "2",
                "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2")) {
            @Override
            protected void convert(RecyclerViewHolder holder, String item, int position) {

            }
        });
    }

    @Override
    protected AccountReconciliatePresenter createPresenter() {
        return new AccountReconciliatePresenter(this);
    }

}
